//
//  MusicDetailShareHandle.m
//  OurRelaxDemo
//
//  Created by 王雅蓉 on 15/6/29.
//  Copyright (c) 2015年 于宾尧. All rights reserved.
//

#import "MusicDetailShareHandle.h"

@implementation MusicDetailShareHandle

+(instancetype)shareListDataHandle
{
    static MusicDetailShareHandle *listSH= nil;
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
        listSH = [[MusicDetailShareHandle alloc] init];
        listSH.listShareArray = [NSMutableArray array];
        listSH.messageArray = [NSMutableArray array];
        listSH.weekDic = [NSMutableDictionary dictionary];
        listSH.listDataHandle = [[MusicForSonglist alloc] init];
        listSH.playingMusic = [[MusicModel alloc] init];
        listSH.statusMusic = [[MusicForSonglist alloc] init];
    });
    
    return listSH;
}

-(void)sendSongListModel:(NSMutableArray *)songlistArray
{
    [MusicDetailShareHandle shareListDataHandle].listShareArray = songlistArray;
}

-(void)sendPlayingMusic:(MusicModel *)playingMusic
{
    [MusicDetailShareHandle shareListDataHandle].playingMusic = playingMusic;
}

@end
